home *** CD-ROM | disk | FTP | other *** search
/ Deadlock 8 / Deadlock 8.adf / Installdeadlock < prev    next >
Text File  |  1992-09-02  |  3KB  |  96 lines

  1. ;Install script for Deadlock Ish #8 HD-Compat
  2. ;--------------------------------------------
  3. failat 40
  4. setenv dlinstalldir ""
  5. echo "                                "
  6. echo "Deadlock Issue #8 HD Compatible "
  7. echo "CLI-Based Installer (Official Installer coming soon..again)"
  8. echo 
  9.  
  10. echo "Enter path you wish to install to : " noline
  11. if "$KickStart" GT "37.00"
  12.    if exists "c:requestfile"
  13.       c:requestfile drawer "ram:" savemode title="Select path to install to"  drawersonly  > env:DLInstallDir
  14.       echo $dlinstalldir
  15.    else
  16.       setenv >Nil: DLInstallDir ?
  17.    endif
  18. else
  19.    setenv >Nil: DLInstallDir ?
  20. endif
  21.  
  22. if $DLInstallDir EQ ""
  23.    echo "Installation aborted by User.."
  24. else
  25.  
  26. if exists $DLInstallDir
  27. ; dir OR file FOUND
  28. LAB Start
  29.    cd >NIL: $DLInstallDir
  30.    if fail
  31.       echo 'Error: Cannot change directory..'
  32.    else
  33.       echo "Attempting to install Deadlock #8 to directory" $DlInstallDir
  34.       echo "Copying 'DeadlockArticles08.dat'.."  noline
  35.       copy dl08:DeadlockArticles08.dat $DLInstallDir
  36.       if not warn
  37.        echo "Done"
  38.        echo "Copying 'DeadlockGFX08.dat'.." noline
  39.        copy dl08:DeadlockGFX08.dat $DLInstallDir
  40.  
  41.        if not warn
  42.         echo "Done"
  43.         echo "Copying 'dl08.exe'.." noline
  44.         copy dl08:Dl08.exe $DlInstallDir
  45.         if not warn
  46.            echo "Done"
  47.            echo 
  48.            echo "Creating Script.." 
  49.             
  50.            echo assign dl08: $dlinstalldir > Deadlock08
  51.            echo "Deadlock will cater for both Normal monitors and Multisync monitors"
  52.            echo "the routines vary slightly."
  53.            ask  "Do you use a Multisync monitor (y/n) :"
  54.            if warn 
  55.             echo "MULTISYNC switch added to Deadlock script"
  56.                   echo "dl08.exe multisync hdinstalled" >> Deadlock08
  57.            else
  58.             echo "Deadlock will run as normal.."
  59.             echo "dl08.exe hdinstalled" >> Deadlock08
  60.            endif
  61.            echo assign dl08: remove >> Deadlock08
  62.            echo ";this mag will run from workbench and cli" >> Deadlock08
  63.            echo ";but it is better to run from cli. see Readme file for info" >> Deadlock08
  64.            copy dl08:Deadlock08.info $dlinstalldir
  65.            
  66.            
  67.            echo "Install Complete"
  68.         else
  69.         skip fail
  70.  
  71.         endif
  72.        else
  73.         skip    fail
  74.            endif
  75.       else
  76. lab fail
  77.            echo "Installation failed"
  78.       endif
  79.    endif
  80.  
  81. else
  82.    echo "could not find $DLInstallDir"
  83.    ask "Shall I create '$DLInstallDir' as a directory:"
  84.    if warn
  85.       echo "Making directory $DLInstallDir.." noline
  86.       makedir "$DLInstallDir"
  87.       echo "Done"
  88.       
  89.       skip Start BACK
  90.     else
  91.       echo "Install Aborted by User"      
  92.     endif
  93.  
  94. endif
  95. endif
  96.